package com.deyinet.bdcms.controller;


import com.alibaba.fastjson.JSON;
import com.deyinet.bdcms.controller.dtoandapi.RedisDeviceApi;
import com.deyinet.bdcms.entity.Device;
import com.deyinet.bdcms.service.IDeviceService;
import com.deyinet.bdcms.service.ISysmoduleService;
import com.deyinet.bdcms.tools.RedisPoolUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.Pipeline;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by liyu on 16/12/26.
 */
@Controller
@RequestMapping(value = "/sysmanage")
public class IndexController {
    @Autowired
    private ISysmoduleService sysmoduleService;
    @Autowired
    private IDeviceService deviceService;

    @RequestMapping(value = "/main", method = RequestMethod.GET)
    public void main() {
    }

    @RequestMapping(value = "/unauth", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
    public String usermgr(HttpServletRequest request) {
        return "{\"code\":-1,\"msg\":\"此功能授权\"";
    }



}
